package com.example.api.mapper;

import com.example.api.model.entity.Sale;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface SaleMapper {
    
    void insert(Sale sale);

    void delete(@Param("id") String id);
    
    List<Sale> findAll();
    
    List<Sale> findAllByCompanyorCommodityLike( String keyword);

    Sale update(Sale sale);
}
